function [vector matrix] = im2dct(image)

image_double = double(image/256);
image_after_transform = abs(dct2(image_double));
image_after_transform = image_after_transform(1:15, 1:15);
matrix = uint8(image_after_transform*256);
vector = image_after_transform(:);
vector = vector(2:end);
